{include file="header.tpl" eltype="class" hasel=true contents=$classcontents}


<div class="class-ico"><img src="{$subdir}media/images/class.png" /></div>
<h1>{if $is_interface}Interface{else}{if $abstract}Abstract {/if}Class{/if} <span>{$class_name}</span></h1>
<div class="location">Located in <a class="field" href="{$page_link}">{$source_location}</a> (line <span class="field">{if $class_slink}{$class_slink}{else}{$line_number}{/if}</span>)</div>

{bazalt->getCurrentClassEvents assign="events"}

{include file="tagsinfo.tpl"}

    <div class="spacer"></div>

    <table width="100%">
    <tr>
    <td>
    <div class="leftColumn">
        {if !$is_interface}
        {include file="coverage.tpl"}
        {/if}

        <div class="spacer"></div>

        <div class="info">
            <h2>Description</h2>

            {include file="docblock_new.tpl" type="class" sdesc=$sdesc desc=$desc}

            {if $implements}
            <div class="interface">Implements interfaces:
                {foreach item="int" from=$implements name="intr"}<span>
                {if $int|strpos:'(internal interface)'}
                <a title="{$int}" target="_blank" href="http://www.php.net/manual/en/class.{$int|replace:' (internal interface)':''|strtolower}.php" class="external">{$int|replace:' (internal interface)':''}</a>
                {else}{$int}{/if}</span>{if !$smarty.foreach.intr.last}, {/if}{/foreach}
            </div>
            <div class="spacer"></div>
            {/if}

            {if $tutorial}
                <hr class="separator" />
                <div class="notes">Tutorial: <span class="tutorial">{$tutorial}</span></div>
            {/if}
            {if $class_tree.classes|@count > 1}
            <pre class="inheritance">{foreach name=tree item=cls from=$class_tree.classes}{$cls}
{if !$smarty.foreach.tree.last}{section name=foo start=0 loop=$smarty.foreach.tree.iteration step=1}   {/section}<img src="{$subdir}media/images/elbow-end.gif"/>{/if}{/foreach}</pre>
            {/if}
            {if $conflicts.conflict_type}
                <hr class="separator" />
                <div><span class="warning">Conflicts with classes:</span><br /> 
                {section name=me loop=$conflicts.conflicts}
                    {$conflicts.conflicts[me]}<br />
                {/section}
                </div>
            {/if}
        </div>

{if $conflicts.conflict_type}<div class="warning">Conflicts with classes:<br />
	{section name=me loop=$conflicts.conflicts}
	{$conflicts.conflicts[me]}<br />
	{/section}
</div>
	{/if}
{if $tutorial}
<h4 class="classtutorial">{if $is_interface}Interface{else}Class{/if} Tutorial:</h4>
<ul>
	<li>{$tutorial}</li>
</ul>
{/if}

        {* Methods *}
        {if $methods || $imethods}
        <a name="Methods"></a>
        <div class="info">
            <h2>Methods</h2>

            <div style="padding: 1em;">
                {include file="method_new.tpl"}
            </div>
        </div>
        {/if}

        {* Events *}
        {if $events|@count > 0}
        <a name="Events"></a>
        <div class="info">
            <h2>Events</h2>

            <div style="padding: 1em;">
                {include file="event_new.tpl"}
            </div>
        </div>
        {/if}

        {* Variables *}
        {if $vars || $ivars}
        <a name="Variables"></a>
        <div class="info">
            <h2>Variables</h2>

            <div style="padding: 1em;">
                {include file="var_new.tpl"}
                {*if $ivars}
                    <h4>Inherited Variables</h4>
                    <A NAME='inherited_vars'><!-- --></A>
                    {section name=ivars loop=$ivars}
                        <p>Inherited from <span class="classname">{$ivars[ivars].parent_class}</span></p>
                        <blockquote>
                            {section name=ivars2 loop=$ivars[ivars].ivars}
                                <img src="{$subdir}images/{if $ivars[ivars].ivars[ivars2].access == 'private'}PrivateVariable{else}Variable{/if}.png" />
                                <span class="var-title">
                                    <span class="var-name">{$ivars[ivars].ivars[ivars2].link}</span>{if $ivars[ivars].ivars[ivars2].ivar_sdesc}: {$ivars[ivars].ivars[ivars2].ivar_sdesc}{/if}<br>
                                </span>
                            {/section}
                        </blockquote> 
                    {/section}
                {/if*}
            </div>

        </div>
        {/if}


        {* Constants *}
        {if $consts || $iconsts}
        <a name="Constants"></a>
        <div class="info">
            <h2>Constants</h2>

            <div style="padding: 1em;">
                {include file="const_new.tpl"}
            </div>

        </div>
        {/if}

    </div>
    </td>
    <td width="250">
    <div class="rightColumn">

        {if $methods || $imethods || $vars || $ivars || $consts || $iconsts}
        <div class="page rightmenu">
            <div class="xtop"><div class="xb1"></div><div class="xb2"></div><div class="xb3"></div><div class="xb4"></div></div>
            <div class="core">

                <h5>Navigator</h5>

                <ul class="menu">
                    {if $methods || $imethods}
                    <li class="method">
                    <a href="#Methods">Methods{if $methods|@count > 0} <strong>({$methods|@count}){/if}</strong></a>
                    </li>
                    {/if}
                    {if $events|@count > 0}
                    <li class="event">
                    <a href="#Events">Events{if $events|@count > 0} <strong>({$events|@count}){/if}</strong></a>
                    </li>
                    {/if}
                    {if $vars || $ivars}
                    <li class="var">
                    <a href="#Variables">Variables{if $vars|@count > 0} <strong>({$vars|@count}){/if}</strong></a>
                    </li>
                    {/if}
                    {if $consts || $iconsts}
                    <li class="const">
                    <a href="#Constants">Constants{if $consts|@count > 0} <strong>({$consts|@count})</strong>{/if}</a>
                    </li>
                    {/if}
                </ul>

                <div class="spacer"><!----></div>
            
            </div>
            <div class="xtop"><div class="xb4"></div><div class="xb3"></div><div class="xb2"></div><div class="xb1"></div></div>
        </div>
        {/if}


        {if $tags}
            {section name=tags loop=$tags}
            {if $tags[tags].keyword == 'todo'}
            {capture name=todo}
            {$smarty.capture.todo}
            <li class="todo">{$tags[tags].data}</li>
            {/capture}
            {/if}
            {/section}
            
            {if $smarty.capture.todo != ''}
            <div class="page rightmenu">
                <div class="xtop"><div class="xb1"></div><div class="xb2"></div><div class="xb3"></div><div class="xb4"></div></div>
                <div class="core">
                    <h5>ToDo</h5>
                    <ul class="menu">
                        {section name=tags loop=$tags}
                        {if $tags[tags].keyword == 'todo'}
                        <li class="todo">{$tags[tags].data}</li>
                        {/if}
                        {/section}
                    </ul>
                    <div class="spacer"><!----></div>
                </div>
                <div class="xtop"><div class="xb4"></div><div class="xb3"></div><div class="xb2"></div><div class="xb1"></div></div>
            </div>
            {/if}
        {/if}
        
        
        
        {* Child classes *}
        {if $children}
            <div class="page rightmenu">
                <div class="xtop"><div class="xb1"></div><div class="xb2"></div><div class="xb3"></div><div class="xb4"></div></div>
                <div class="core">

                    <h5>Child classes</h5>

                    <ul class="menu">
                    {section name=kids loop=$children}
                        {if $children[kids].abstract}{/if}
                        {if $children[kids].access == 'private'}{/if}
                        {*if $children[kids].sdesc}{$children[kids].sdesc}{else}{$children[kids].desc}{/if*}
                        <li class="{if !$children[kids].abstract && (in_array('ISingleton',$children[kids].implements) || in_array('IWebConfig',$children[kids].implements))}singleton{else}{if $children[kids].abstract}abstract-{/if}class{/if}">{$children[kids].link}</li>
                    {/section}
                    </ul>

                    <div class="spacer"><!----></div>
                
                </div>
                <div class="xtop"><div class="xb4"></div><div class="xb3"></div><div class="xb2"></div><div class="xb1"></div></div>
            </div>
        {/if}
    </div>
    </td>
    </tr>
    </table>

{include file="footer.tpl"}